% sid = CInt(Request.QueryString("sid")) pageno = CInt(Request.QueryString("pageno")) If pageno = 0 Then pageno = 1 End If Set conn = Server.CreateObject("ADODB.Connection") conn.Open MM_Connect sql = "Select SubCatName,CatID From SubCategory Where SubCatID="&sid set rs = conn.Execute(sql) subcatname = rs("subCatName") cid = rs("CatID") rs.Close set rs = nothing sql = "Select CatName From Category Where CatID="&cid set rs = conn.Execute(sql) catname = rs("CatName") rs.Close set rs = nothing statuslink = ""&catname&"" statuslink = statuslink & " > "&subcatname&"" %>
|
|